<template>
    <div>
        test
        <el-button @click="toUser">跳转</el-button>
    </div>
</template>

<script setup>
    import { useRouter } from "vue-router";
    const router = useRouter();
    
    const toUser = () => {
        router.push('user')
    }

</script>

<style lang="scss" scoped>

</style>